#include <iostream>
#include <vector>
#include <algorithm>
#define int long long
using namespace std;

void solve() {
    int n;
    cin >> n;
    std::vector<int> a(n + 1);
    for(int i=1;i<=n;i++){
        std::cin>>a[i];
    }
    std::sort(a.begin() + 1, a.end());
    int sum = 0;
    for (int i = 1; i <= n; i++) {
        if(sum >= a[i] - 1) {
            sum += a[i];
        }
    }
     if(sum >= n) cout << "Cool!" << endl;
     else cout << sum + 1 << endl; 
}

signed main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    
    int t;
    cin >> t; 
    while (t--) solve();
    
    return 0;
}
